package com.anclick.mywatch;

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
 
/**
 * TIME_TICK을 쓰기위한 Service Class
 *  
 * com.anclick.mywatch
 * MyWatchService.java 
 *
 * @author junhwan_kim
 * @date 2011. 5. 3. 오후 2:22:41
 * @Version
 */
public class MyWatchService extends Service {

	/**
	 * 
	 * @see android.app.Service#onBind(android.content.Intent)
	 * @Method onBind
	 * @param intent
	 * @return
	 *
	 * @author junhwan_kim  
	 * @date 2011. 5. 3. 오후 2:23:18
	 */
	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}
	
	/**
	 * 
	 * @see android.app.Service#onStart(android.content.Intent, int)
	 * @Method onStart
	 * @param intent
	 * @param startId
	 *
	 * @author junhwan_kim
	 * @date 2011. 5. 3. 오후 2:23:15
	 */
	@Override
	public void onStart(Intent intent, int startId) {
		super.onStart(intent, startId);
	}
	
	/**
	 * 
	 * @see android.app.Service#onCreate()
	 * @Method onCreate
	 *
	 * @author junhwan_kim
	 * @date 2011. 5. 3. 오후 2:23:12
	 */
	@Override
	public void onCreate(){
		super.onCreate();
		
		/// junhwan_kim, 2011.05.03, TIME_TICK을 동적으로 할당받는다.
		registerReceiver(
				new MyWatchProvider(),
				new IntentFilter(Intent.ACTION_TIME_TICK));  
	}
}
